package com.wisewin.circle.dao;

import com.wisewin.circle.entity.LoginUser;
import com.wisewin.circle.entity.db.UserDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

@Component
public interface UserDAO {

	/**
	 *通过ID查询
	 */
	 public UserDO queryUserById (@Param("id") Integer id);

	 public UserDO queryUserByPhonePasscode(@Param("phone") String phone, @Param("passcode") String passcode);

	 public void updateFolowNum(Integer id);

	 public void cancleFolowNum(Integer id);

	 public void updateFansNum(Integer id);

	public void cancleFansNum(Integer id);

	public void updateUserInfo(UserDO userDO);

	public int queryUserCount(Map<String, Object> map);

	public List<UserDO> queryUserList(Map<String, Object> map);

	public void insert(@Param("obj")UserDO obj);

	public UserDO queryUserByPhone(@Param("phone") String phone);

	public void updateUserHomeUrl(UserDO userDO);

	public void updateUserIsDel(Integer id);

	public int queryUserNum();

	public void updateVisitNum(Integer id);

	public void insertPhone(@Param("obj")UserDO userDO);

	public LoginUser queryUserInfoByPhone(String phone);

	public void updateUserStatus(Integer id, Integer isDel);
}
